package com.peace.hospital.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.peace.hospital.entity.hospitalization.entity.Department;
import com.peace.hospital.mapper.DepartmentMapper;
import com.peace.hospital.service.IDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xie
 * @since 2019-11-12
 */
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements IDepartmentService {


    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> getAll() {
        System.out.println(departmentMapper.selectAll());
        return departmentMapper.selectAll();
    }





}
